package com.lframework.xingyun.promo.service.member;

import com.lframework.starter.web.core.service.BaseMpService;
import com.lframework.starter.web.core.components.resp.PageResult;
import com.lframework.xingyun.promo.entity.MarketingMemberCoupon;
import com.lframework.xingyun.promo.vo.member.QueryMarketingMemberCouponVo;

import java.util.List;

/**
 * 会员营销活动和卡券关系表 Service
 */
public interface MarketingMemberCouponService extends BaseMpService<MarketingMemberCoupon> {

    /**
     * 查询列表
     * @return
     */
    PageResult<MarketingMemberCoupon> queryPage(Integer pageIndex, Integer pageSize, QueryMarketingMemberCouponVo vo);

    /**
     * 查询列表
     * @param vo
     * @return
     */
    List<MarketingMemberCoupon> queryList(QueryMarketingMemberCouponVo vo);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    MarketingMemberCoupon findById(String id);

    /**
     *
     * @param marketingMemberId
     * @param couponIds
     * @return
     */
    void batchAdd(String marketingMemberId, List<String> couponIds);

    /**
     *
     * @param marketingMemberId
     * @param couponIds
     * @return
     */
    void batchUpdate(String marketingMemberId, List<String> couponIds);

}

